package Change;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by lawrence on 2015/9/24.
 */
public class ObjectToString {
    public static void main(String[] args) {
//        ObjectToString ots = new ObjectToString();
        TestMode testMode = new TestMode();
        testMode.setAttrOne("attrOne");
        testMode.setAttrTwo("attrTwo");
        testMode.setAttrThree("attrThree");
        List<Object> list = new ArrayList<Object>();
        list.add("listOne");
        list.add("listTwo");
        list.add("listThree");
        list.add("listFour");
        testMode.setAttrList(list);

        for (Object value : testMode.getAttrList()) {
            System.out.println((String) value);
        }
    }
}
